package com.sky.service;

import com.sky.dto.AddEmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 添加员工
     * @param addEmployeeDTO
     * @return
     */
    void addEmployee(AddEmployeeDTO addEmployeeDTO);

    /**
     * 分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult selectEmployeePageQuery(EmployeePageQueryDTO employeePageQueryDTO);


    /**
     * 启用禁用员工账号
     * @param status
     * @param id
     */
    void employeeStatusOrStop(Integer status, Long id);


    /**
     * 根据ID查询员工信息
     * @param id
     * @return
     */
    Employee selectEmployeeById(Long id);


    /**
     * 编辑员工信息
     * @param addEmployeeDTO
     */
    void updateEmployee(AddEmployeeDTO addEmployeeDTO);
}
